package mgt.pages

class ApiGroupCreatePage extends geb.Page {
    static url = "/apiGroup/create"

    static content = {
        nameField(wait: true) { $("#name") }

        createButton(to: ApiGroupShowPage) { $(".save") }
    }

    ApiGroupShowPage createApiGroup(String name) {
        nameField.value(name)

        createButton.click()

        return browser.page
    }
}